TCP/IP stack fingerprinting

TCP/IP stack fingerprinting is the passive collection of configuration attributes from a remote device during standard layer 4 network communications. The combination of parameters may then be used to infer the remote machine's operating system (aka, OS fingerprinting), or incorporated into a device fingerprint.

Contents

TCP/IP Fingerprint Specifics

Certain parameters within the TCP protocol definition are left up to the implementation.  Different operating systems, and different versions of the same operating system, set different defaults for these values.  By collecting and examining these values, one may differentiate among various operating systems, and implementations of TCP/IP.[1] The TCP/IP fields that may vary include the following:

These values may be combined to form a 67-bit signature, or fingerprint, for the target machine.[2] Just inspecting the Initial TTL and window size fields is often enough in order to successfully identify an operating system, which eases the task of performing manual OS fingerprinting.[3]

Protection against and detecting fingerprinting

Protection against all types of TCP/IP fingerprinting is achieved through TCP/IP fingerprint obfuscators. Also known as fingerprint scrubbing, tools exist for MS Windows,[4] Linux,[5] FreeBSD,[6] and likely others.

Moreover, protection against active fingerprinting attempts is achieved by limiting the type and amount of traffic a system responds to. Examples include the following: blocking of all unnecessary outgoing ICMP traffic, especially unusual packet types like address masks and timestamps. Also, blocking of any ICMP echo replies. Be warned that blocking things without knowing exactly what they are for can very well lead to a broken network; for instance, your network could become a black hole. Alternatively, active fingerprinting tools themselves have fingerprints that can be detected.[7]

Defeating TCP/IP fingerprinting may provide limited protection from potential attackers who employ a vulnerability scanner to select machines of a specific target OS. However, a determined adversary may simply try a series of different attacks until one is successful.[8]

Fingerprinting tools

A list of TCP/OS Fingerprinting Tools

References

  1. ^ "Know Your Enemy: Passive Fingerprinting". Project.honeynet.org. http://project.honeynet.org/papers/finger/. Retrieved 2011-11-25. 
  2. ^ Chuvakin A. and Peikari, C: "Security Warrior.", page 229. O'Reilly Media Inc., 2004.
  3. ^ "Passive OS Fingerprinting, NETRESEC Network Security Blog". Netresec.com. 2011-11-05. http://www.netresec.com/?page=Blog&month=2011-11&post=Passive-OS-Fingerprinting. Retrieved 2011-11-25. 
  4. ^ "OSfuscate". Irongeek.com. 2008-09-30. http://www.irongeek.com/i.php?page=security/osfuscate-change-your-windows-os-tcp-ip-fingerprint-to-confuse-p0f-networkminer-ettercap-nmap-and-other-os-detection-tools. Retrieved 2011-11-25. 
  5. ^ Carl-Daniel Hailfinger, carldani@4100XCDT. "IPPersonality". Ippersonality.sourceforge.net. http://ippersonality.sourceforge.net/. Retrieved 2011-11-25. 
  6. ^ "Defeating TCP/IP stack fingerprinting". Usenix.org. 2002-01-29. http://www.usenix.org/events/sec00/full_papers/smart/smart_html/index.html. Retrieved 2011-11-25. 
  7. ^ "iplog". http://ojnk.sourceforge.net/stuff/iplog.readme. Retrieved 2011-11-25. 
  8. ^ "OS detection not key to penetration". Seclists.org. http://seclists.org/pen-test/2007/Sep/0030.html. Retrieved 2011-11-25. 
  9. ^ "PacketFence". PacketFence. 2011-11-21. http://www.packetfence.org/. Retrieved 2011-11-25. 

External links